package com.gmako.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gmako.dao.BaseDAO;
import com.gmako.entity.StatAccount;
import com.gmako.entity.Userinfo;
import com.gmako.service.StatService;
@Service
public class StatServiceImpl implements StatService{
	@Autowired
	private BaseDAO baseDAO;
	
	/**
	 * stat登录
	 * @author Warlcok叶
	 * @param username
	 * @param pwd
	 * @return
	 */
	
	public StatAccount statLogin(String acount_number, String password) {
		String hql = "from StatAccount where acount_number = '"+acount_number +"' and password='"+password+"'";
		return (StatAccount)baseDAO.loadObject(hql);
	}

}
